package com.wlient.basic.Thread.SysTask;

/**
 * Created on 2018/5/31
 *
 * @author wang.teng
 */
public class SysTaskStatic {
    public synchronized static void doSomeThing() {
        synchronized (SysTaskStatic.class) {
        System.out.println("doSomeThing start thread name is :" + Thread.currentThread().getName());

        System.out.println("doSomeThing end thread name is :" + Thread.currentThread().getName());
    }
    }
    public void doSomeThing2() {
         synchronized (SysTaskStatic.class) {
        System.out.println("doSomeThing2 start thread name is :" + Thread.currentThread().getName());

        System.out.println("doSomeThing2 end thread name is :" + Thread.currentThread().getName());
        }
    }
}